import Vue from 'vue'
import App from './App.vue'
import router from './router'
import { Tabbar, TabbarItem, NavBar, Form, Field, Button, Toast, Cell, List, Icon, Grid, GridItem, CellGroup } from 'vant'

// 组件的全局注册
import ArticleItem from '@/components/ArticleItem'
Vue.component('ArticleItem', ArticleItem)

Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(NavBar)
Vue.use(Form)
Vue.use(Field)
Vue.use(Button)
Vue.use(Toast)
Vue.use(Cell)
Vue.use(List)
Vue.use(Icon)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(CellGroup)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
